package com.ysy.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.sql.Date;
import java.time.LocalDateTime;

/**
 * <p>
 * 笔记-话题关联表
 * </p>
 *
 * @author yangSy
 * @since 2025-04-24
 */
@Getter
@Setter
@ToString
@TableName("note_topic_rel")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class NoteTopicRel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 笔记ID
     */
    @TableId("note_id")
    private Long noteId;

    /**
     * 话题ID
     */
    @TableField("topic_id")
    private Long topicId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
}
